package com.example.administrator.myapplication.base;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;

import com.example.administrator.myapplication.R;
import com.example.administrator.myapplication.utils.AnimUtils;
import com.example.administrator.myapplication.view.other.LoginActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by yang on 2017/5/3 2:01
 */
public class WelcomeActivity extends BaseActivity {
    @BindView(R.id.image)
    ImageView imageView;

    @Override
    public int getContentView() {
        return R.layout.activity_welcom;
    }


    @Override
    public void initView() {

    }

    @Override
    public void parseIntent(Intent intent) {

    }


    @OnClick({R.id.login, R.id.regist})
    public void onViewClicked(View view) {
        AnimUtils.rotationAnim(view, 0, 360, 100);
        switch (view.getId()) {
            case R.id.login:
                LoginActivity.startUI(this, true);
                break;
            case R.id.regist:
                LoginActivity.startUI(this, false);
                break;
        }
    }
}
